{% layout="front_layout.html" %}
{-sidebar-}
{*helper:run('/internal/tags',{['tag_id']=tag_id})*}
{-sidebar-}

{-title22-}
<div class="hero-unit">
    <h1>Hello, world!</h1>
    <p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
    <p><a href="#" class="btn btn-primary btn-large">Learn more &raquo;</a></p>
</div>
{-title22-}

{-content-}
<div class="row-fluid">
    <div class="span12">
    {% for k,v in pairs(articles) do %}
        <div class="panel panel-info well">
            <div class="panel-heading">
                <h3 class="panel-title"><a href="{{helper:url("article",{id=v["id"]})}}">{{v["title"]}}</a></h3>
            </div>
            <div class="panel-body" style="word-break: break-all;word-wrap: break-word;">
                {*helper:substr_utf8(helper:strip_tag(v["content"]),400,400)*}
                <p>{{v[updated_at]}}
                <a class="btn" href="{{v[id]}}">View details &raquo;</a>
                {#
                <form name="sdfsdf" action="" method="post" class="form-inline">
                <a class="btn" href="">Edit</a>
                 <input type="hidden" name="id" value="{{v[id]}}">
                <input type="submit" class="btn btn-default" value="删除"/>
                </form>
                #}
                </p>
            </div>
        </div>
    {% end %}
    </div><!--/span-->
</div>
{% if page then%}
{(page.html, {pageobj=page})}
{%end%}
{-content-}
